package com.pai4j.remote.pgc;

import com.pai4j.common.bean.PAIResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Set;

@FeignClient(name = "pai4j-pgc-service", contextId = "subjectRelationClient")
public interface SubjectRelationClient {
    @GetMapping("/pgc-service/subject/getAllSubscriber/{relationType}/{subjectId}")
    PAIResponseBean<Set<String>> getSubjectAllSubscriber(@PathVariable("relationType") Integer relationType,
                                                        @PathVariable("subjectId") Long subjectId);
}